package com.wendy.mongo;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.data.mongodb.core.mapping.MongoId;

@Document("user")
public class UserVo implements java.io.Serializable  {


    private static final long serialVersionUID = 7196302827923395575L;
    @MongoId
    private Long id ;
    @Field("user_name")
    private String name ;

    private Integer age ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
